
#pragma once

#define _WINSOCKAPI_   /* Prevent inclusion of winsock.h in windows.h */
#include <windows.h>

class Clock
{
public:
	//! Constructor
	Clock();
	virtual ~Clock();

	virtual bool init();
	virtual void setAbsoluteTime();
	virtual double run();
	virtual double get();

protected:
	double myCurrentValue; // in seconds

	double tickTime; // time of one tick on low part, in sec.
	double highTickTime; // time of one tick on high part, in sec.
	LARGE_INTEGER beginCount;
};
